package cn.lirenyi.basic.query;

import lombok.Data;

/**
 *  抽取的公共query
 *  高级查询+分页
 */
@Data
public class BaseQuery {
    // 第几页
    private Integer currentPage = 1;
    // 每页有多少数据
    private Integer pageSize = 10;
    private String keyword;

    public Integer getStart(){
        return (this.currentPage - 1) * this.pageSize;
    }


}
